<?php

class Default_IndexController extends Zend_Controller_Action {

    public function init() {
        $this->_helper->viewRenderer->setNoRender(true);
    }

    public function indexAction() {
        $viewClient = new Zend_Rest_Client("http://imobil.localhost");
        $data = array(
            'Nome' => 'Beatriz Etiene',
            'Login' => 'Bia',
            'EMail' => 'beatriz@eaglesistemas.com.br',
            'Senha' => 'chimera',
            'Regra' => 2);

        echo $viewClient->restGet("/api/usuario");
        #echo $viewClient->restGet("/api/usuario/4");
        #echo $viewClient->restPost("/api/usuario", $data);
        #echo $viewClient->restPut("/api/usuario/4", $data);
        #echo $viewClient->restGet("/api/cliente/2");

        $dataLog = array(
        'Login' => 'Bia',
        'Senha' => 'chimera');
        
        #echo $viewClient->restPost("/api/auth", $dataLog);
        #echo $viewClient->restGet("/api/usuario");
        #echo $viewClient->restGet("/api/cliente/2");
    }

}